contStyle();
$(window).resize (function(){
	contStyle();
})
function contStyle(){
	var winWidth=0;
	var winHeight=0;
	//获取窗口宽度
	if (window.innerWidth){
	    winWidth = window.innerWidth;
	}else if ((document.body) && (document.body.clientWidth)){
	    winWidth = document.body.clientWidth;
	}
	//获取窗口高度
	if (window.innerHeight){
		winHeight = window.innerHeight;
	}else if((document.body) && (document.body.clientHeight)){
		winHeight = document.body.clientHeight;
	}
	//通过深入Document内部对body进行检测，获取窗口高度
	if (document.documentElement  && document.documentElement.clientHeight && document.documentElement.clientWidth){
		winWidth  = document.documentElement.clientWidth;
		winHeight = document.documentElement.clientHeight;
	}
	$(".content").css({"height":parseInt(winHeight),"width":parseInt(winWidth)});

}
$('#toggle-button').change(function(){
	if(this.checked){
		console.log('选中');
	}else{
		console.log('未选中');
	}
})
